home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 11
/
Cream of the Crop 11-1.iso
/
utility
/
horst_2.zip
/
QECHO.DOC
< prev
next >
Wrap
Text File
|
1995-12-18
|
1KB
|
47 lines
------------------------------------------------------------------------
QECHO Quote echo (c) 1994 Horst Schaeffer
------------------------------------------------------------------------
QECHO echos the following data:
+ Strings in 'single' or "double" quotes
+ ASCII byte values (decimal)
+ Control codes with caret, like ^L (=ASCII 12)
+ Symbols: CR (13), LF (10), FF (12), ESC (27)
No terminating CR/LF is output unless specified (!)
thus: QECHO "something" CR LF
is same as: ECHO something
Pipes and redirections as usual. Separators (blank, comma, semicolon)
allowed. If any invalid data occur, the rest of the line will be ignored
(errorlevel > 0).
Some examples:
++ Write to a file without CR+LF
QECHO "SET X="> some.bat
++ ANSI cursor without CR+LF
QECHO ESC "[0;40H"
++ Pipe multiple lines or CR's
QECHO CR,"N",CR | format A: /q/u /v:"" (FORMAT, no prompts)
QECHO "D100,200",CR,"Q",CR | debug PROG.COM (DUMP thru DEBUG)
++ Send control codes to printer (without CR/LF)
QECHO FF > LPT1 (form feed)
QECHO ESC "@", ESC "l" 10 > LPT1 (reset, margin /EPSON)
++ Redirect output with pipe- and redirection symbols
(double quotes required!)
QECHO "echo.|date > tmp.dat",CR LF > xyz.bat
= 21 FEB 1995